<template>
	<view class="big">
		<view class="list between">
			<view class="list_left align">
				<u-avatar size='60' src="/static/cw.png"></u-avatar>
				<view class="list_left_font">
					<view class="list_left_font1 align">
						{{myData.name}}
						
					</view>
					<!-- <view class="list_left_font2">
						简历评分80分，建议优化
					</view> -->
				</view>
			</view>
			<view class="list_right">
				<!-- <img style="width: 30rpx;height: 30rpx;" src="/static/icon/rightlogo.png" alt="" srcset=""> -->
				<!-- <view class="list_right_yuan">
					
				</view> -->
			</view>
		</view>
		<view class="shu around">
			<view class="shu_item " @click="songyang(myData.id)">
				<view class="shu_item_shu" v-if="myData.faBu">
					{{myData.faBu}}
				</view>
				<view class="shu_item_shu" v-else>
					0
				</view>
				<view class="shu_item_font">
					发布送养
				</view>
			</view>
			<view class="shu_item " @click="lingyang(myData.id)">
				<view class="shu_item_shu" v-if="myData.lingyang">
					{{myData.lingyang}}
				</view>
				<view class="shu_item_shu" v-else>
					0
				</view>
				<view class="shu_item_font">
					申请领养
				</view>
			</view>
			<view class="shu_item " @click="shenqing(myData.id)">
				<view class="shu_item_shu" v-if="myData.shenqing">
					{{myData.shenqing}}
				</view>
				<view class="shu_item_shu" v-else>
					0
				</view>
				<view class="shu_item_font">
					收到申请
				</view>
			</view>
			<view class="shu_item " @click="xuncong(myData.id)">
				<view class="shu_item_shu" v-if="myData.xubChong">
					{{myData.xubChong}}
				</view>
				<view class="shu_item_shu" v-else>
					0
				</view>
				<view class="shu_item_font">
					发布寻宠
				</view>
			</view>
		</view>
		<!-- <view class="page between align">
			<view class="align">
				<img style="width: 30rpx;height: 30rpx;margin-right: 20rpx;" src="/static/icon/shua.png" alt="" srcset="">
				简历刷新
			</view>
			<view class="align baoguang">
				提升曝光
				<img  style="width: 30rpx;height: 30rpx;margin-left: 20rpx;" src="/static/icon/rightlogo.png" alt="" srcset="">
			</view>
			
		</view> -->
		
		<view class="page">
			<view class=" between align">
				<view class="" style="font-weight: bold;">
					
					其他功能
				</view>
				<!-- <view class="align baoguang">
					查看全部
					<img  style="width: 30rpx;height: 30rpx;margin-left: 20rpx;" src="/static/icon/rightlogo.png" alt="" srcset="">
				</view> -->
			</view>
			<view class="qita around">
				<view class="qita_item" @click="gotizi">
					<view class="" style="text-align: center;">
						<img style="width: 100rpx;height: 100rpx;" src="../../static/icon/shenqing.png" alt="" srcset="">
					</view>
					TNR申请
				</view>
				<view class="qita_item" @click="goguanzhu">
					<view class="" style="text-align: center;">
						<img style="width: 100rpx;height: 100rpx;" src="../../static/icon/jubao.png" alt="" srcset="">
					</view>
					举报中心
				</view>
				<view class="qita_item" @click="gobinzhang">
					<view class="" style="text-align: center;">
						<img style="width: 100rpx;height: 100rpx;" src="../../static/icon/binzhang.png" alt="" srcset="">
					</view>
					宠物殡葬
				</view>
				
			</view>
			
		</view>
	</view>
</template>

<script>
	import { checkedBy } from "@/api/list.js"
	export default {
		data() {
			return {
				myData:{},
				Inv: 0, 
				
				
				list1: [{
						name: '全职',
					}, {
						name: '兼职',
					}, {
						name: '实习'
					},]
			}
		},
		onShow() {
			this.getList();
		},
		onLoad() {
			
		},
		methods: {
			getList(){
				checkedBy().then(result => {
					console.log(result)
					if (result.statusCode == 200) {
						// this.carouselListUrl = [];
						this.myData=result.data
						console.log(this.myData)
						
					} else {
						uni.showToast({
							title: data.msg,
							icon: 'none',
							duration: 2000
						});
					}
				})
			},
			lingyang(id){
				uni.navigateTo({
					url: '/pages/index/lingyang?id='+id
				})
			},
			songyang(id){
				uni.navigateTo({
					url: '/pages/index/songyang?id='+id
				})
			},
			xuncong(id){
				uni.navigateTo({
					url: '/pages/index/fbxc?id='+id
				})
			},
			shenqing(id){
				uni.navigateTo({
					url: '/pages/index/shenqing?id='+id
				})
			},
			gobinzhang(){
				uni.$u.route('/pages/release/funeral');
			},
			gozaixian(){
				uni.$u.route('/pages/my/notes');
			},
			gofujian(){
				uni.$u.route('/pages/my/manage');
			},
			goqiuzhi(){
				uni.$u.route('/pages/my/intention');
			},
			gotizi(){
				uni.$u.route('/pages/index/tnr');
			},
			goguanzhu(){
				uni.$u.route('/pages/index/jubao');
			},
			goxiaoxi(){
				uni.$u.route('/pages/my/message');
			},
			click(a,index){
				this.Inv=index
				console.log(index)
			},
		}
	}
</script>

<style scoped>
	
	.gongneng_item_font{
		font-size: 14px;
		text-align: center;
	}
	.gongneng_item_font1{
		font-size: 14px;
		color: #8a8a8a;
		text-align: center;
	}
	.baoguang{
		font-size: 12px;
	}
	.gongneng{
		margin-top: 20rpx;
	}
	.qita_item{
		margin-top: 20rpx;
	}
	.page{
		margin-top: 20rpx;
		padding: 20rpx;
		box-sizing: border-box;
		border-radius: 20rpx;
		background-color: rgb(247, 248, 250);
	}
	.shu_item_shu{
		font-size: 24px;
		text-align: center;
	}
	.shu_item_font{
		font-size: 14px;
		text-align: center;
	}
	.big{
		padding-left: 30rpx;
		padding-right: 30rpx;
		box-sizing: border-box;
	}
	.list{
		margin-bottom: 20rpx;
	}
	.list_left_font{
		margin-left: 10rpx;
	}
	.list_right_yuan{
		width: 30rpx;
		height: 30rpx;
		border-radius: 50%;
		border: 2rpx solid #000;
	}
	.list_left_font1{
		font-weight: bold;
	}
	.list_left_font2{
		margin-top: 6rpx;
		font-size: 13px;
		color: rgb(132, 132, 132);
	}
	.list{
		background-color: #fff;
		border-radius: 30rpx;
		padding: 30rpx;
	}
</style>